package tech.edwardvan.springbootdemo.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent;
import org.springframework.context.ApplicationListener;

/**
 * 应用事件监听器3
 * <p>
 * 通过配置文件添加
 * 配置属性: context.listener.classes
 *
 * @author EdwardVan
 */
@Slf4j
public class DemoApplicationListener3 implements ApplicationListener<ApplicationEnvironmentPreparedEvent> {

    @Override
    public void onApplicationEvent(ApplicationEnvironmentPreparedEvent event) {
        log.warn("应用事件监听器3,通过配置文件添加");
    }
}
